package com.youlu.campus.web.commission;

import com.youlu.campus.web.order.service.OrderCommissionService;
import com.yuelin.infrastructure.quantum.common.QResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderCommissionController {


    @Autowired
    private OrderCommissionService orderCommissionService;

    /**
     * 分享好友赚佣金接口
     * @return
     */
    @GetMapping("/public/distributor/commission/init")
    public QResult getDistributorSharingCommission(String activityId){
        orderCommissionService.initOrderCommision(activityId);
        return QResult.success(null);
    }




}
